package model;

public class PlaceTransitionArc extends Arc{

	private final Place from;
	private final Transition to;

	public PlaceTransitionArc(final Place from, final Transition to){
		this(from,to,1);
	}
		
	public PlaceTransitionArc(final Place from, final Transition to, final int multiplicity) {
		super(multiplicity);
		this.from = from;
		this.to = to;
	}

	@Override
	public void accept(final ArcVisitor visitor) {
		visitor.visit(this);
	}

	public Place getFrom() {
		return from;
	}

	public Transition getTo() {
		return to;
	}
}
